﻿using System;
class cSharpWork {
    static bool isTrue(int num) {
        if (num <= 1) return false;
        if (num == 2) return true;
        for (int i = 2; i <= Math.Sqrt(num); i++)
        {
            if (num % i == 0) return false;
        }
        return true; }
    static void Main(string[] args)
    {
        Console.WriteLine("你好！我是黄罗霖");
        Console.Write("请输入下限：");
        int low = int.Parse(Console.ReadLine());
        Console.Write("请输入上限：");
        int high = int.Parse(Console.ReadLine());
        for (int i = low; i <= high; i++) {
            if (isTrue(i)) { 
                Console.Write(i); 
                Console.Write(" ");
            }
        }
    }
}